<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			{{title}}
			<ul>
				<li>{{ fn(arr[0]) }}</li>
				<li>{{ arr[1] }}</li>
				<li>{{ arr[2] }}</li>
			</ul>
		</div>
		
	</body>
	<script src="lib/vue.js"></script>
	<script>
		var vm = new Vue({
			el: "#app",
			data:{
				title: "标题文本",
				prefix: 'hahah',
				arr: [
					1,2,3
				]
			},
			methods:{
				fn(value){
					return this.prefix + value
				}
			}
		});
		console.log((vm.title))
		console.log((vm.$data.title))
	</script>
</html>
